package com.homegoods.home.model;

import com.homegoods.home.item.NewProductItem;
import com.kedll.library.adapter.MultiTypeAdapter;
import com.kedll.library.mvp.BaseModel;

import java.math.BigDecimal;

/**
 * @author QiQi
 * @ClassName: NewProductModel
 * @date 2018/9/6
 * @description
 */
public class NewProductModel extends BaseModel<NewProductItem> {
    /**
     * "num": "1",
     * "sid": "Efa+DmrErSJp72vG+6niaYfV1KUC4VrA81QsjkImVNQSVsK5eA4JtngfNmCTpIjS",
     * "title": "惠普（HP）战66 Pro G1 14英寸轻薄笔记本电脑（i5-8250U 8G 360G PCIe SSD 标压MX150 2G独显）银色 ",
     * "SmallPic": "/upath/2018/11/5/172640969246357ufi.jpg",
     * "Businessman": {
     * "title": "奥凡尼旗舰店 ",
     * "sid": "factory_2bcfa161bcfd4f2dada44c4c33c07e68"
     * },
     * "StandardPrice": "5399",
     * "NowPrice": "4618",
     * "Inventory": "200",
     * "AboutInf": "商品名称：惠普HP ZHAN 66 Pro G1\r\n商品编号：7748348\r\n商品毛重：2.32kg\r\n商品产地：中国大陆\r\n货号：4SZ17PC\r\n系统：Windows 10\r\n厚度：15.1mm—20.0mm\r\n硬盘容量：其他\r\n色系：其他色系\r\n待机时长：9小时以上\r\n系列：惠普 - 战系列\r\n裸机重量：1.5-2kg\r\n显卡类别：高性能游戏独立显卡\r\n屏幕尺寸：14.0英寸\r\n显卡型号：MX150\r\n特性：窄边框，指纹识别\r\n内存容量：8G\r\n分辨率：全高清屏（1920×1080）\r\n显存容量：2G\r\n分类：轻薄本，常规笔记本，加固笔记本\r\n处理器：Intel i5低功耗版\r\n游戏性能：发烧级",
     * "FixedParam": {
     * "胸围": "111",
     * "颜色": "2222",
     * "腰围": "66"
     * },
     * "BuyUnit": "个",
     * "ActTag": "",
     * "Manufacturer": "1",
     * "CmdtyService": "|comclass_30cd88fdfee24485a89ad119e0d55d13|",
     * "SaleCount": "10",
     * "PayCake": "0.66"
     */
    private String num;
    private String sid;
    private String title;
    private String SmallPic;
    private String StandardPrice;
    private BigDecimal NowPrice;
    private String Inventory;
    private String AboutInf;
    private String BuyUnit;
    private String ActTag;
    private String Manufacturer;
    private String CmdtyService;
    private String SaleCount;
    private BigDecimal PayCake;
    private String FixedParam;
    private BusinessMan Businessman;

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSmallPic() {
        return SmallPic;
    }

    public void setSmallPic(String smallPic) {
        SmallPic = smallPic;
    }

    public String getStandardPrice() {
        return StandardPrice;
    }

    public void setStandardPrice(String standardPrice) {
        StandardPrice = standardPrice;
    }

    public BigDecimal getNowPrice() {
        return NowPrice;
    }

    public void setNowPrice(BigDecimal nowPrice) {
        NowPrice = nowPrice;
    }

    public String getInventory() {
        return Inventory;
    }

    public void setInventory(String inventory) {
        Inventory = inventory;
    }

    public String getAboutInf() {
        return AboutInf;
    }

    public void setAboutInf(String aboutInf) {
        AboutInf = aboutInf;
    }

    public String getBuyUnit() {
        return BuyUnit;
    }

    public void setBuyUnit(String buyUnit) {
        BuyUnit = buyUnit;
    }

    public String getActTag() {
        return ActTag;
    }

    public void setActTag(String actTag) {
        ActTag = actTag;
    }

    public String getManufacturer() {
        return Manufacturer;
    }

    public void setManufacturer(String manufacturer) {
        Manufacturer = manufacturer;
    }

    public String getCmdtyService() {
        return CmdtyService;
    }

    public void setCmdtyService(String cmdtyService) {
        CmdtyService = cmdtyService;
    }

    public String getSaleCount() {
        return SaleCount;
    }

    public void setSaleCount(String saleCount) {
        SaleCount = saleCount;
    }

    public BigDecimal getPayCake() {
        return PayCake;
    }

    public void setPayCake(BigDecimal payCake) {
        PayCake = payCake;
    }

    public String getFixedParam() {
        return FixedParam;
    }

    public void setFixedParam(String fixedParam) {
        FixedParam = fixedParam;
    }

    public BusinessMan getBusinessman() {
        return Businessman;
    }

    public void setBusinessman(BusinessMan businessman) {
        Businessman = businessman;
    }

    @Override
    public NewProductItem createItem(MultiTypeAdapter adapter) {
        return new NewProductItem(this);
    }

    public class BusinessMan {
        private String title;
        private String sid;

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getSid() {
            return sid;
        }

        public void setSid(String sid) {
            this.sid = sid;
        }
    }
}
